package com.asen.commons.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Boolean类型注解
 *
 * @author mg
 * @version 1.0
 * @date 2021-01-20
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface FieldBool {

    /**
     * 表示本次注解生成SQL时null转成false
     */
    boolean nullToFalse() default true;
}
